package com.browan.constellation.data;

import android.database.Cursor;

public class HorscropData extends BaseColumn
{

	private String name;

	private int rate;

	private String desc;

	public HorscropData()
	{
		rate = -1;
	}

	public HorscropData(Cursor c)
	{
		this.name = c.getString(c.getColumnIndexOrThrow(ITEM_TITLE));
		this.desc = c.getString(c.getColumnIndexOrThrow(ITEM_DESC));
		this.rate = Integer.parseInt(c.getString(c.getColumnIndexOrThrow(ITEM_LINK)));
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public int getRate()
	{
		return rate;
	}

	@Override
	public String toString()
	{
		return this.name + ":" + this.rate + ":\n" + this.desc;
	}
	
	public void setRate(int rate)
	{
		this.rate = rate;
	}

	public String getDesc()
	{
		return desc;
	}

	public void setDesc(String desc)
	{
		this.desc = desc;
	}
}